package org.example.server.search.doc;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "demo")
public class DemoDOC {
    @Field(type = FieldType.Long)
    private Long dbId;

    @Field(type = FieldType.Long)
    @Id
    private Long userId;

    @Field(type = FieldType.Long)
    private Long nnNumber;

    @Field(type = FieldType.Text)
    private String nickName;

    @Field(type = FieldType.Text)
    private String nickName1;

    @Field(type = FieldType.Text)
    private String nickNamePingYin;

    @Field(type = FieldType.Integer)
    private Integer countryCode;

    @Field(type = FieldType.Keyword)
    private String telNum;

    @Field(type = FieldType.Keyword)
    private String userType;

    @Field(type = FieldType.Keyword)
    private String userUrl;

    @Field(type = FieldType.Keyword)
    private String userUrlNn;

    @Field(type = FieldType.Long)
    private Long vipExpire;
}